<script lang="ts">
  export let btnFunction: (param?: any) => void
  export let btnText: string
</script>

<style>
  button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.25rem 0.75rem;
    gap: 0.25rem;
    border-radius: var(--onboard-border-radius-5, var(--border-radius-5));
    background: transparent;
    color: var(--action-color);
  }
  button:hover {
    background: var(--border-color, rgba(146, 155, 237, 0.2));
  }
</style>

<button on:click|stopPropagation={() => btnFunction(true)}>
  {btnText}
</button>
